package com.qingmi.farmer.data.request;

import com.wjjun.basemvpvm.data.request.BaseRequest;

/**
 * 获取短信验证码
 * Created by 67535 on 2018/4/26.
 */

public class GetCodeReq extends BaseRequest {

    //手机号码
    private String Phone;
    //类型
    private int Type;

    private GetCodeReq(String phone, int type) {
        this.Phone = phone;
        this.Type = type;
    }

    /**
     * 获取注册短信验证码
     */
    public static GetCodeReq getRegisterCode(String phone) {
        return new GetCodeReq(phone, 1);
    }

    /**
     * 获取验证短信验证码
     */
    public static GetCodeReq getVerifyCode(String phone) {
        return new GetCodeReq(phone, 2);
    }

    /**
     * 获取设置支付密码短信验证码
     */
    public static GetCodeReq getSetPayPwdCode(String phone) {
        return new GetCodeReq(phone, 3);
    }

    /**
     * 获取登录用的验证码
     */
    public static GetCodeReq getLoginCode(String phone) {
        return new GetCodeReq(phone, 6);
    }


    public String getPhone() {
        return Phone;
    }

    public void setPhone(String phone) {
        this.Phone = phone;
    }

    public int getType() {
        return Type;
    }

    public void setType(int type) {
        this.Type = type;
    }
}
